package cn.tedu.medicalmanagementsystem.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    //所有的实例定义在最上面
    OPERATION_SUCCESS(2000, "操作成功"),
    OPERATION_FAILED(3000, "操作失败"),
    USERNAME_EXISTS(1000,"用户名被占用"),
    USERNAME_PASSWORD_ERROR(1001,"用户名或密码错误"),
    NOT_LOGIN(1002,"用户未登录"),
    USER_NOT_EXIST(4100, "用户不存在"),
    DELETE_SUCCESS(2001,"删除成功"),
    NOT_ALLOWED(1003,"非法请求！！！！"),
    THROWABLE_ERROR(6666,"未知异常"),
    VALIDATED_ERROR(8888,"参数校验失败"),
    OPERATION_FAIL(2010,"未找到对应服务" ),
    ACCOUNT_NOT_APPROVED(1004, "账号未通过审核"),//陪诊员账号未通过审核
    USER_NOT_EXISTS(1008, "陪诊员不存在"),
    PARAMETER_ERROR(1005, "参数错误"),
    SERVICE_NOT_FOUND(1006, "服务记录未找到"),
    SYSTEM_ERROR(1088, "系统错误"),
    PHONE_EXISTS(1099,"手机号码已存在"),
    EMAIL_EXISTS(1111,"邮箱已存在" ),
    DATA_UNEXISTS(2002,"数据不存在" ),
    USERNAME_ALREADY_EXISTS(2003,"用户名已存在" );

    private Integer state;
    private String message;
}









